//
//  LSWrongBookManager.m
//  听说弱点强化训练
//
//  Created by 盛超 on 2018/9/9.
//  Copyright © 2018年 盛超. All rights reserved.
//

#import "LSWrongBookManager.h"

@implementation LSWrongBookManager

- (void)requestWithCompltionSuccess:(void (^)(LSModelWrongBookList *))success failuer:(void (^)(NSString *))failure {
    self.requestUrl = @"api/ZXYYTS/W_ZXYYTS_GetWrongQueBookList";
    [self requestGetMethodWithSuccess:^(id responseObject) {
        NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingAllowFragments error:nil];
        NSLog(@"%@",[NSObject objectToJson:dict]);
        LSModelWrongBookList *list = [LSModelWrongBookList yy_modelWithDictionary:dict];
        success(list);
    } Failure:^(NSError *error) {
        failure(error.localizedDescription);
    }];
}

@end
